import store from '@/store/index.js';
import utils from '@/utils/utils.js';
var ListViewResetChildrenCommand = function() {
	
};

ListViewResetChildrenCommand.prototype.execute = function() {
	this.listViewComponentModel.children = this.children;
	var componentModel = store.state.mformDesigner.componentModel;
	var newComponentModel = utils.deepCopy(componentModel);
	store.state.mformDesigner.componentModel = newComponentModel;
};

ListViewResetChildrenCommand.prototype.setListViewComponentModel=function(listViewComponentModel){
	this.listViewComponentModel=listViewComponentModel;
}

ListViewResetChildrenCommand.prototype.setListViewChildrenModel=function(children){
	this.children=children;
}

export default ListViewResetChildrenCommand